import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
  {
    path:'/',
    name:'home',
    redirect:"/home",
    component:()=>import('@/views/home/HomesView.vue')
  },
  {
    path:'/home',
    name:'home',
    component:()=>import('@/views/home/HomesView.vue')
  },
  {
    path: '/check',
    name: 'check',
    component: ()=>import('@/views/check/CheckView.vue'),
  },
  {
    path: '/mine',
    name: 'mine',
    component: ()=>import('@/views/mine/MineView.vue'),

  },
  {
    path:'/eatwhat',
    name:"eatwhat",
    component: ()=>import('@/views/eatwhat/EatView.vue'),

  },
  {
    path:'/shop',
    name:"shop",
    component: ()=>import('@/views/shop/ShopView.vue'),
  },
  {
    path:'/cont',
    name:"cont",
    component: ()=>import('@/views/cont/ContView.vue'),
  },
  {
    path:'/money',
    name:"money",
    component: ()=>import('@/views/money/MoneyView.vue'),
  },
  {
    path:'/login',
    name:"login",
    component: ()=>import('@/views/login/LoginView.vue'),
  }
]

const router = new VueRouter({
  routes
})

export default router
